#ifndef FILETRANSFERFIFO_H_
#define FILETRANSFERFIFO_H_

#include <string>
#include <cstdio>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>

using namespace std;

class FileTransferFifo {

private:
	string name;
	int fd;
	bool isDestroyed;

public:
	FileTransferFifo(string fileName);
	virtual ~FileTransferFifo();

	int writeData(char* data, int dataSize);
	int readData(char* buffer, int buffSize);

	void destroy();
};

#endif /* FILETRANSFERFIFO_H_ */
